home *** CD-ROM | disk | FTP | other *** search
- on idle
- set theVLoc to the mouseV
- set theHLoc to the mouseH
- if (theHLoc < 30) and (theVLoc < 435) then
- if the left of sprite 1 < 10 then
- cursor(200)
- set the castNum of sprite 3 to 14
- set the locH of sprite 3 to theHLoc
- set the locV of sprite 3 to theVLoc
- if the visible of sprite 3 = 0 then
- set the visible of sprite 3 to 1
- end if
- set the locH of sprite 1 to the locH of sprite 1 + 5
- end if
- updateStage()
- exit
- end if
- if (theHLoc > 610) and (theVLoc < 435) then
- if the right of sprite 1 > 629 then
- cursor(200)
- set the castNum of sprite 3 to 12
- set the locH of sprite 3 to theHLoc
- set the locV of sprite 3 to theVLoc
- if the visible of sprite 3 = 0 then
- set the visible of sprite 3 to 1
- end if
- set the locH of sprite 1 to the locH of sprite 1 - 5
- end if
- updateStage()
- exit
- end if
- if theVLoc < 30 then
- if the top of sprite 1 < 10 then
- cursor(200)
- set the castNum of sprite 3 to 11
- set the locH of sprite 3 to theHLoc
- set the locV of sprite 3 to theVLoc
- if the visible of sprite 3 = 0 then
- set the visible of sprite 3 to 1
- end if
- set the locV of sprite 1 to the locV of sprite 1 + 5
- end if
- updateStage()
- exit
- end if
- if (theVLoc > 400) and (theVLoc < 435) then
- if the bottom of sprite 1 > 424 then
- cursor(200)
- set the castNum of sprite 3 to 13
- set the locH of sprite 3 to theHLoc
- set the locV of sprite 3 to theVLoc
- if the visible of sprite 3 = 0 then
- set the visible of sprite 3 to 1
- end if
- set the locV of sprite 1 to the locV of sprite 1 - 5
- end if
- updateStage()
- exit
- end if
- set the visible of sprite 3 to 0
- cursor(-1)
- end
-
- on exitFrame
- set the visible of sprite 1 to 1
- go(the frame)
- end
-